import type { AppRouteModule } from '/src/router/types';
import { LAYOUT } from '/src/router/constant';
import { t } from '/src/hooks/web/useI18n';

const stock: AppRouteModule = {
  path: '/stock',
  name: 'Stock',
  component: LAYOUT,
  redirect: '/stock/task',
  meta: {
    orderNo: 2000,
    icon: 'ion:settings-outline',
    title: t('routes.demo.stock.moduleName'),
  },
  children: [
    {
      path: 'task',
      name: 'TaskManagement',
      meta: {
        title: t('routes.demo.stock.task'),
        ignoreKeepAlive: true,
      },
      component: () => import('/src/views/stock/task/index.vue'),
    },
    {
      path: 'menu',
      name: 'MenuManagement',
      meta: {
        title: t('routes.demo.system.menu'),
        ignoreKeepAlive: true,
      },
      component: () => import('/src/views/demo/system/menu/index.vue'),
    },
  ],
};

export default stock;
